home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinMessenger 11.xpl < prev    next >
Text File  |  2002-01-10  |  2KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Instant Messaging\Windows Messenger\Passport"
  5. "NAME"="Passport sites"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Load automatically when visiting Passport sites"
  9. "DESCRIPTION 1"="Whenever you visit a passport site in Windows NT, 2000 or XP, MSN/Windows Messenger loads automatically in the background. However you can prevent this from happening - to do so, clear the tick in the box."
  10. "DESCRIPTION 2"="Windows Messenger may be obtained at http://messenger.microsoft.com/"
  11. "AUTHOR"="Xteq Systems (Neil R. Turner)"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="Thanks to Axcel216 and Peter Rajan (peterrajan@hotmail.com) for the tip!"
  15. "OSVERSION"="0101011"
  16.  
  17. sP="HKCU\Software\Microsoft\MessengerService\"
  18. sQ="HKCR\CLSID\{F3A614DC-ABE0-11d2-A441-00C04F795683}\LocalServer32\"
  19.  
  20. Sub Plugin_Initialize 
  21.  s=RegPathExists(sP)
  22.  if s=false then
  23.   Call Disable()
  24.  else
  25.   s=RegReadValue(sQ & "@")
  26.   if IsEmpty(s)=false then
  27.    Call SetUIElement(1,true)
  28.   end if
  29.  end if 
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  s=GetUIElement(1)
  34.  if s=false then
  35.   t=RegReadValue(sQ & "@")
  36.   if IsEmpty(t)=false then
  37.    Call RegWriteValue(sQ & "Xteq X-Setup Backup",t,1)
  38.    Call RegDeleteValue(sQ & "@")
  39.   end if
  40.  else
  41.   t=RegReadValue(sQ & "Xteq X-Setup Backup")
  42.   if IsEmpty(t)=false then
  43.    Call RegWriteValue(sQ & "@",t,1)
  44.   end if
  45.  end if
  46. End Sub
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.